package com.wy.dao;

import com.wy.model.sys.Buildings;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BuildingsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Buildings record);

    int insertSelective(Buildings record);

    Buildings selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Buildings record);

    int updateByPrimaryKey(Buildings record);

    /**
     * 获取房屋列表
     *
     * @param pageSize
     * @param start
     * @return
     */
    public List<Buildings> buildingList(@Param("pageSize") int pageSize, @Param("start") int start);

    /**
     * 获取房屋列表
     * @return
     */
    public List<Buildings> buildingAll();

    /**
     * 获取楼栋列表的总量
     *
     * @param pageSize 每页显示条数
     * @param start 起始页数
     * @return
     */
    public Integer buildingSize(@Param("pageSize") int pageSize, @Param("start") int start);
}